﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiveatEdu.model
{
    public class Teacher : Person
    {
        private const int ENROLLMENT = 0;
        private const int CODE = 1;
        private const int NAME = 2;
        private const int BIRTHDAY = 3;
        private const int SAMACCOUNTNAME = 4;
        private const int PASSWORD = 5;

        public Teacher(List<string> teacherParameter)
        {
            this.Title = teacherParameter.ElementAt(ENROLLMENT);
            this.Cn = teacherParameter.ElementAt(NAME);
            this.SamAccountName = teacherParameter.ElementAt(SAMACCOUNTNAME);
            this.Password = this.makePassword(teacherParameter.ElementAt(PASSWORD));
            this.GivenName = this.makeGivenName(this.Cn);
            this.Sn = this.makeSn(this.Cn);
            this.Mail = this.SamAccountName + "@docente.facet.edu.br";
        }
    }
}
